<?php

namespace app\admin\model\discord;

use app\admin\model\Discord;
use think\Model;


class Guild extends Model
{


    // 表名
    protected $name = 'discord_guild';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    public function discord()
    {
        return $this->hasOne(Discord::class,'id','discord_id')->field(['id','token'])->bind(['token'=>'token']);
    }




}
